home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
mac
/
files
/
ID99MENU.DIR
/
00202_review spin script.ls
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1999-04-29
|
357 b
|
20 lines
property s, mypercent, mywidth
global tickrate, stagedone
on beginSprite me
s = me.spriteNum
mypercent = 0
mywidth = the width of sprite s
end
on prepareFrame me
set the width of sprite s to float(mywidth) / 100 * mypercent
mypercent = min(100, mypercent + tickrate)
end
on donestage me
if mypercent < 100 then
stagedone = 0
end if
end